package com.qumitech.visualnovel.datasource.console;

import com.qumitech.visualnovel.model.dao.console.RequestExceptInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RequestExceptInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RequestExceptInfo record);

    int insertSelective(RequestExceptInfo record);

    RequestExceptInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RequestExceptInfo record);

    int updateByPrimaryKey(RequestExceptInfo record);

    List<RequestExceptInfo> getList(@Param(value = "accountId") Integer accountId,
                                    @Param(value = "phone") String phone,
                                    @Param(value = "startTime") String startTime,
                                    @Param(value = "endTime") String endTime,
                                    @Param(value = "offset") Integer offset,
                                    @Param(value = "pageSize") Integer pageSize,
                                    @Param(value = "orderType") String orderType,
                                    @Param(value = "orderBy") String orderBy);

    int getCount(@Param(value = "accountId") Integer accountId,
                 @Param(value = "phone") String phone,
                 @Param(value = "startTime") String startTime,
                 @Param(value = "endTime") String endTime);
}